package com.appkubes.mall.core.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
/**
 * 用户层级(分销/经纪人)
 * @author Rongjie
 */
@Data
@TableName("mall_user_hierarchy")
@KeySequence(value = "mall_user_hierarchy_SEQ")
@ApiModel(value = "MallUserHierarchy对象")
public class MallUserHierarchy implements Serializable{

       @ApiModelProperty(value = "应用KEY")
       private String appKey;

       @TableId(value = "user_key", type = IdType.UUID)
       @ApiModelProperty(value = "用户KEY")
       private String userKey;

       @ApiModelProperty(value = "上级用户KEY")
       private String parentUserKey;

       @ApiModelProperty(value = "二级分销用户KEY")
       private String parentUserKey2;

       @ApiModelProperty(value = "三级分销用户KEY")
       private String parentUserKey3;

       @ApiModelProperty(value = "四级分销用户KEY")
       private String parentUserKey4;

       @ApiModelProperty(value = "五级分销用户KEY")
       private String parentUserKey5;

       @ApiModelProperty(value = "推广员KEY")
       private String promoterKey;

       @ApiModelProperty(value = "版本号", example = "1")
       @Version
       private Integer version;

}
